package com.prs.crm.domain.oa;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;
/**
 * 公共通讯录
 * @author miccn
 *
 */
@Entity
@Table(name="oa_maillist_public")
public class PublicMailList extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@OneToOne
	private PublicMailListType publicMailListType; //类型
	@ManyToOne
	private Person person; //所属人
	private String name; //姓名
	private String nickname; //昵称
	private String company; //公司
	private String dept; //部门
	private String personal_email; //个人电子邮件
	private String business_email; //商务电子邮件
	private String other_email; //其他电子邮件
	private String personal_tel; //个人电话号码
	private String business_tel; //商务电话号码
	private String fax; //传真
	private String telephoneNo; //手机号码
	private String other_tel; //其他号码
	private String personal_address; //个人地址
	private String business_address; //商务地址
	private String personal_zipCode; //个人邮编
	private String business_zipCode; //商务邮编
	private String personal_website; //个人网址
	private String business_website; //商务网址
	private String birthday; //生日
	private String content; //备注
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public PublicMailListType getPublicMailListType() {
		return publicMailListType;
	}
	public void setPublicMailListType(PublicMailListType publicMailListType) {
		this.publicMailListType = publicMailListType;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getDept() {
		return dept;
	}
	public void setDept(String dept) {
		this.dept = dept;
	}
	public String getPersonal_email() {
		return personal_email;
	}
	public void setPersonal_email(String personalEmail) {
		personal_email = personalEmail;
	}
	public String getBusiness_email() {
		return business_email;
	}
	public void setBusiness_email(String businessEmail) {
		business_email = businessEmail;
	}
	public String getOther_email() {
		return other_email;
	}
	public void setOther_email(String otherEmail) {
		other_email = otherEmail;
	}
	public String getPersonal_tel() {
		return personal_tel;
	}
	public void setPersonal_tel(String personalTel) {
		personal_tel = personalTel;
	}
	public String getBusiness_tel() {
		return business_tel;
	}
	public void setBusiness_tel(String businessTel) {
		business_tel = businessTel;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getTelephoneNo() {
		return telephoneNo;
	}
	public void setTelephoneNo(String telephoneNo) {
		this.telephoneNo = telephoneNo;
	}
	public String getOther_tel() {
		return other_tel;
	}
	public void setOther_tel(String otherTel) {
		other_tel = otherTel;
	}
	public String getPersonal_address() {
		return personal_address;
	}
	public void setPersonal_address(String personalAddress) {
		personal_address = personalAddress;
	}
	public String getBusiness_address() {
		return business_address;
	}
	public void setBusiness_address(String businessAddress) {
		business_address = businessAddress;
	}
	public String getPersonal_zipCode() {
		return personal_zipCode;
	}
	public void setPersonal_zipCode(String personalZipCode) {
		personal_zipCode = personalZipCode;
	}
	public String getBusiness_zipCode() {
		return business_zipCode;
	}
	public void setBusiness_zipCode(String businessZipCode) {
		business_zipCode = businessZipCode;
	}
	public String getPersonal_website() {
		return personal_website;
	}
	public void setPersonal_website(String personalWebsite) {
		personal_website = personalWebsite;
	}
	public String getBusiness_website() {
		return business_website;
	}
	public void setBusiness_website(String businessWebsite) {
		business_website = businessWebsite;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
}
